package com.aldobucchi.x.flash.geom
{

	import flash.geom.Matrix;
	import flash.geom.Rectangle;


	/**
	 * 
	 * A rectangle that lives "somewhere".
	 * It is bound to a coordinate space through matrix transformations
	 * 
	 * @author aldo.bucchi@gmail.com
	 * 
	 */
	public class AbsoluteRectangle extends Rectangle
	{
		
		
		/**
		 * 
		 * 
		*/		
		public var coordinateSpaceTranformation:Matrix;
		
		
		public function AbsoluteRectangle( x:Number=0, y:Number=0, width:Number=0, height:Number=0, coordinateSpaceTranformation:Matrix = null )
		{
			
			super( x, y, width, height );
			
			this.coordinateSpaceTranformation = coordinateSpaceTranformation == null ? new Matrix( ) : coordinateSpaceTranformation;
				
		}
		
	}
}